package ascii;

import java.util.Random;

public class RandomCharacterPrinter {

	public static void main(String[] args) {
	    Random r = new Random();

	    Random myRand = new Random();
	    char c = (char)(myRand.nextInt(26) + 'a');
	    String str = "";
	    str = str+c;
	    System.out.println("My string: " + str);
	    
	    String alphabet = "123xyz";
	    for (int i = 0; i < 50; i++) {
	        System.out.println(alphabet.charAt(r.nextInt(alphabet.length())));
	    } // prints 50 random characters from alphabet
	}

}
